package com.hqyj.hrms.modules.account.service;

import com.hqyj.hrms.modules.account.entity.User;

import java.util.HashMap;

public interface UserService {

    //登录
    HashMap<String, Object> login(User user);

    //注册
    HashMap<String, Object> register(User user);

    //退出
    void logout();

    //新增
    HashMap<String, Object> add(User user);

    //修改
    HashMap<String, Object> update(User user);

    //删除
    HashMap<String, Object> del(Integer id);

    //查询
    HashMap<String, Object> list(User user);

    //
    User getUserByUserName(String userName);
}
